package com.cloudsigns.factorymanager2.media_system.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.cloudsigns.factorymanager2.BaseActivity;
import com.cloudsigns.factorymanager2.R;

public class MediaSystemEditOrderDetailActivity extends BaseActivity {
    private RelativeLayout rl_back;
    private TextView tv_title;
    private ImageView img_edit;

    @Override
    protected void onBaseCreate(Bundle savedInstanceState) {
        setContentView(R.layout.layout_media_system_edit_order_detial);
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        rl_back = findViewById(R.id.rl_back);
        tv_title = findViewById(R.id.tv_title);
        img_edit=findViewById(R.id.img_edit_construct_content);
    }

    @Override
    protected void initData(Bundle savedInstanceState) {
        tv_title.setText(getResources().getString(R.string.engineering_construction));
    }

    @Override
    public void setListener() {
        rl_back.setOnClickListener(this);
        img_edit.setOnClickListener(this);
    }

    @Override
    public void widgetClick(View view) {
        Intent intent=null;
        switch (view.getId()) {
            case R.id.rl_back:
                finish();
                break;
                // 编辑施工内容
            case R.id.img_edit_construct_content:
                intent=new Intent(MediaSystemEditOrderDetailActivity.this,MediaSystemEditConstructContentActivity.class);
                startActivity(intent);
                break;
        }
    }
}
